package com.esd.crm.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;

import com.esd.crm.entity.Code;

@Mapper
public interface CodeMapper {
	int deleteByPrimaryKey(Integer id);

	int insert(Code record);

	int insertSelective(Code record);

	Code selectByPrimaryKey(Integer id);

	int updateByPrimaryKeySelective(Code record);

	int updateByPrimaryKey(Code record);

	List<Code> selectByParam(Map<String, Object> param);

	List<Code> selectCodeProduct(String codeKey);

	Integer selectByParamCount(Map<String, Object> param);
}